package com.base.common.persistent.model;

import java.util.List;

/**
 * 工单实体类
 * 
 * @author kat.luhongkai
 * @datetime 2015年8月4日上午11:09:54
 * 
 */
public class Ticket {
	private int id; // 主键id
	private String code; // 工单据工单号
	private String address; // 业主位置
	private String context; // 报修内容
	private int categories; // 工单类别
	private int status; // 工单状态
	private String subUserPhone;// 工单提交用户电话
	private String picUrls; // 图片链接地址，多个图片地址以分号分隔
	private String remarks; // 备注
	private User user; // 业主信息
	private Employee employee; // 员工信息
	private String getTime; // 接单时间
	private String finishTime; // 完成时间
	private String bespeakTime; // 预约时间
	private int ticketScore; // 评分
	private List<TicketReport> ticketReports; // 当前工单记录集合
	private int employeeCompoundsId; // 员工小区中间表id
	private Compounds compounds;
	private Subclass subclass;
	private String subCode;

    public String getSubCode() {
        return subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }

    public String getGetTime() {
		return getTime;
	}

	public void setGetTime(String getTime) {
		this.getTime = getTime;
	}

	public String getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(String finishTime) {
		this.finishTime = finishTime;
	}

	public String getBespeakTime() {
		return bespeakTime;
	}

	public void setBespeakTime(String bespeakTime) {
		this.bespeakTime = bespeakTime;
	}

	public int getId() {
		return id;
	}

	public Ticket setId(int id) {
		this.id = id;
		return this;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public int getCategories() {
		return categories;
	}

	public void setCategories(int categories) {
		this.categories = categories;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getPicUrls() {
		return picUrls;
	}

	public void setPicUrls(String picUrls) {
		this.picUrls = picUrls;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getSubUserPhone() {
		return subUserPhone;
	}

	public void setSubUserPhone(String subUserPhone) {
		this.subUserPhone = subUserPhone;
	}

	public List<TicketReport> getTicketReports() {
		return ticketReports;
	}

	public void setTicketReports(List<TicketReport> ticketReports) {
		this.ticketReports = ticketReports;
	}

	public int getTicketScore() {
		return ticketScore;
	}

	public void setTicketScore(int ticketScore) {
		this.ticketScore = ticketScore;
	}

	/**
	 * @return the employeeCompoundsId
	 */
	public int getEmployeeCompoundsId() {
		return employeeCompoundsId;
	}

	/**
	 * @param employeeCompoundsId
	 *            the employeeCompoundsId to set
	 */
	public void setEmployeeCompoundsId(int employeeCompoundsId) {
		this.employeeCompoundsId = employeeCompoundsId;
	}

	/**
	 * @return the compounds
	 */
	public Compounds getCompounds() {
		return compounds;
	}

	/**
	 * @param compounds
	 *            the compounds to set
	 */
	public void setCompounds(Compounds compounds) {
		this.compounds = compounds;
	}

	/**
	 * @return the subclass
	 */
	public Subclass getSubclass() {
		return subclass;
	}

	/**
	 * @param subclass the subclass to set
	 */
	public void setSubclass(Subclass subclass) {
		this.subclass = subclass;
	}
}
